package com.hup.winHolderService.config;

import com.hup.winHolderService.model.ExternalAppConfig;
import com.hup.winHolderService.model.po.AppConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author hugan
 * @date 2020/12/9
 */
@Configuration
public class BeanConfig {

    @Bean
    public AppConfig appConfig() {
        return new AppConfig().loadFromFile();
    }

    @Bean
    public ExternalAppConfig externalAppConfig() {
        return new ExternalAppConfig().loadFromFile();
    }

}
